# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=leaklooker
pkgver=5.0d2b9fc
pkgrel=8
pkgdesc='Find open databases with Shodan.'
groups=('blackarch' 'blackarch-scanner')
arch=('any')
url='https://github.com/woj-ciech/LeakLooker'
license=('custom:unknown')
depends=('python' 'python-colorama' 'python-shodan' 'python-hurry-filesize')
makedepends=('git')
source=("$pkgname::git+https://github.com/woj-ciech/LeakLooker.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  sed -i "1i#!/usr/bin/env python\n" "$pkgname.py"
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

